<template>
    <div class="app-container">
        <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="PC权限" name="first">
                <tab-container :params="{is_mobile:0}" v-if="activeName=='first'"></tab-container>
            </el-tab-pane>
            <el-tab-pane label="手机权限" name="second">
                <tab-container :params="{is_mobile:1}" v-if="activeName=='second'"></tab-container>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>
<script>
    import TabContainer from "./TabContainer";

    export default {
        components: {TabContainer},
        data() {
            return {
                activeName: 'first'
            };
        },
        methods: {
            handleClick(tab, event) {
                console.log(tab, event);
            }
        }
    };
</script>
